<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <style>
    body {
      width: 300px;
      padding: 10px;
    }
    .field-item {
      margin-bottom: 10px;
    }
    .field-item label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
    }
    input {
      width: 100%;
      padding: 5px;
      margin-top: 5px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }
    button {
      width: 100%;
      padding: 8px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    button:hover {
      background-color: #45a049;
    }
    #logArea {
      margin-top: 10px;
      padding: 5px;
      border: 1px solid #ddd;
      max-height: 100px;
      overflow-y: auto;
      font-size: 12px;
      color: #666;
      background: #f9f9f9;
    }
  </style>
</head>
<body>
  <h3>表单填充器</h3>
  <div id="dynamicFields"></div>
  <button id="fillForm">填充表单</button>
  <script src="popup.js"></script>
</body>
</html>